import React, { Component } from 'react'

export default class Child extends Component {
  //定义模型数据写法一
  constructor () {
    super()
    this.state = {
      age: 10
    }
  }

  //定义模型数据写法二
  //  state = {
  //     age: 10
  //   }
  render () {
    return <div>age{this.state.age}</div>
  }
}
